<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>九九乘法表</title>
    <link rel="stylesheet" href="../css/css04.css">
</head>
<body>
    <div class="content">
    	<!-- 反正三角九九乘法表
            <script>
            for(var i=9;i>0;i--){
                for(var j=1;j<=i;j++){
                    document.write('<div>'+i+'*'+j+'='+i*j+'</div>');
                }
                document.write('<br />');
            }	
        </script> -->
        <!-- <script>
            document.write("<table>");   
            for (var x = 9; x>=1; x--){  
                document.write("<tr>"); 
                //循环输出空格
                for(var i=1;i<10-x;i++){
                     document.write("<th></th>");  
                }	
                //倒过来输出
                for (var y = x; y>=1; y--){  
                    document.write("<td>"+y+"*"+x+"="+y*x+"</td>");   
                }  
            }  
            document.write("</table>");
        </script> -->
    <script>
    document.write("<table>")
    for(var i=1;i<=9;++i){
        document.write("<tr>")
            for(var j=1;j<=i;j++){
                document.write("<td>")
                document.write(i+"*"+j+"="+i*j)
                document.write("</td>")
            }
        document.write("</tr>")
        document.write("<br>")
    }
    document.write("</table>")
    </script>
    </div>
</body>
</html>